package com.ysy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysy.entity.NoteCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 笔记收藏表 Mapper 接口
 * </p>
 *
 * @author yangSy
 * @since 2025-05-01
 */
public interface NoteCollectMapper extends BaseMapper<NoteCollect> {

    List<NoteCollect> selectCollectedByUserIdAndLimit(@Param("userId") Long userId, @Param("size") int i);

    int insertOrUpdateSql(NoteCollect collect);
}

